import java.util.Scanner;
public class Factorial 
{
	public static void main(String[] args) {
	
	int n;
	Scanner sc=new Scanner(System.in);
	  System.out.print(" Input Num :  ");
	 n =sc.nextInt();
	
	int fac=1;
	int i=1;
	for(i=1;i <=n;i++) {
	fac=fac*i;
	}
	System.out.println(n+ "! = " + fac);
	}

}
